package com.speily.spring.aop.service.impl;

import com.speily.spring.aop.service.ITarget;


/**
 * @Auther: SPL
 * @Date: 2019-05-30 14:27
 * @Description: 代理类，动态代理原理demo
 */
public class ProxyTarget implements ITarget{

    private ITarget target;

    public ProxyTarget(ITarget target){
        super();
        this.target = target;
    }

    @Override
    public void test() {
        System.out.println("前置：do something");//添加特定的方法
        target.test();
        System.out.println("后置：do something");
    }
}
